﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dbPoll_Application.Models.ForgotPasswordModel>" %>

<% Html.ValidationSummary(true); %>  
<%= Html.HiddenFor(model => model.Url)%>
<%= Html.HiddenFor(model => model.Status)%>
<table>
<tr><td><a id="a_fp1" href="#">I forgot my password and I don't know the answer to my security question.</a></td></tr>
<tr><td><a id="a_fp2" href="#">I forgot my password but I know the answer to my security question.</a></td></tr>
<tr><td><a id="a_fp3" href="#">I forgot my username and password.</a></td></tr>
</table>

<table id="t_fp3" style="display:none" class="forgotpassword">
<tr>
<td colspan="2"><p>Enter the email address corresponding to your dbPoll account and your account details will be
sent to you via email.</p></td>
</tr>
<tr>
<td class="label"><label>Email</label></td><td><%= Html.TextBoxFor(model => model.Email)%></td>
</tr>
<tr>
<td><input type="submit" value="Send" class="submit"/></td>
</tr>
</table>

<table id="t_fp4" style="display:none" class="forgotpassword">
<tr>
<td colspan="2"><p>Answer your security question.</p></td>
</tr>
<tr>
<td colspan="2"><label>Question:</label> <%= Html.DisplayTextFor(model => model.SecurityQuestion) %></td>
</tr>
<tr>
<td colspan="2"><%= Html.PasswordFor(model => model.SecurityAnswer)%></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Login" class="submit" /></td>
</tr>
</table>

<table id="t_fp1" style="display:none" class="forgotpassword">
<tr>
<td colspan="2"><p id="usernamemsg"></p></td>
</tr>
<tr>
<td class="label"><label id="l_un" for="Username">Username</label></td><td><%= Html.TextBoxFor(model => model.Username)%></td>
</tr>
<tr>
<td><input type="submit" value="Send" id="a_fp4"/><input type="submit" value="OK" id="a_fp5" /></td>
</tr>
</table>

<table>
<tr>
<td><span  id="spinner" style="display:none"><img src="../Resources/ajax-loader.gif" /></span><span id="spinnermsg" style="display:none"></span><span id="validationsummary" style="display:none"><%= Html.ValidationSummary(true) %></span></td>
</tr>
</table>


